package com.gang.mars.basic.generictype.demo9.metadata;

import com.gang.mars.basic.generictype.demo9.annotation.GangMergedAnnotations;
import com.gang.mars.basic.generictype.demo9.annotation.GangTypeMappedAnnotations;

/**
 * @Author：gang.chen
 * @Date：2023/6/19 13:05
 */
public class GangStandardAnnotationMetadata  implements GangAnnotationMetadata
{

    private final GangMergedAnnotations mergedAnnotations;

    private final boolean nestedAnnotationAsMap;


    public GangStandardAnnotationMetadata(Class<?> introspectedClass, boolean nestedAnnotationAsMap) {
        this.mergedAnnotations = new GangTypeMappedAnnotations(introspectedClass);
        this.nestedAnnotationAsMap = nestedAnnotationAsMap;
    }


    @Override
    public GangMergedAnnotations getAnnotations() {
        return mergedAnnotations;
    }
}
